<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cache-control" content="max-age=86400"/>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GBDK 2020 Docs: gbdk-lib/include/gbdk/font.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GBDK 2020 Docs
   &#160;<span id="projectnumber">4.4.0</span>
   </div>
   <div id="projectbrief">API Documentation for GBDK 2020</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('font_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">font.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="font_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifndef __FONT_H</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#define __FONT_H</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="font_8h.html#a63b93b85724b26151ddc2f0fc8050bd8">   14</a></span>&#160;<span class="preprocessor">#define FONT_256ENCODING    0</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="font_8h.html#a305ee4387ba051bd0e372b8a6dfb6905">   15</a></span>&#160;<span class="preprocessor">#define FONT_128ENCODING    1</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="font_8h.html#a80d0f581e17313b62dd7824653462b55">   16</a></span>&#160;<span class="preprocessor">#define FONT_NOENCODING     2</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="font_8h.html#a7c5452979723b3535d17e253beb5d604">   18</a></span>&#160;<span class="preprocessor">#define FONT_COMPRESSED     4</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">/* See gb.h/M_NO_SCROLL and gb.h/M_NO_INTERP */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">   24</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb">   32</a></span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d">font_spect</a>[], <a class="code" href="group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4">font_italic</a>[], <a class="code" href="group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb">font_ibm</a>[], <a class="code" href="group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8">font_min</a>[];</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c">font_ibm_fixed</a>[];</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="font_8h.html#a669b357bedc37be27d7549bd3b8b36f8">   43</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="font_8h.html#a669b357bedc37be27d7549bd3b8b36f8">font_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="font_8h.html#ad089c09492dbd0423f4dd28f1a49a995">   51</a></span>&#160;<a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a> <a class="code" href="font_8h.html#ad089c09492dbd0423f4dd28f1a49a995">font_load</a>(<span class="keywordtype">void</span> *font) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="font_8h.html#a7dee0ba7beb261727340b8cce7c5afcd">   59</a></span>&#160;<a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a> <a class="code" href="font_8h.html#a7dee0ba7beb261727340b8cce7c5afcd">font_set</a>(<a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a> font_handle) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">/* Use mode() and color() to set the font modes and colours */</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structsfont__handle.html">sfont_handle</a> <a class="code" href="structsfont__handle.html">mfont_handle</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="font_8h.html#a82e0e078fc8a8b6a18538131625dba3a">   66</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structsfont__handle.html">sfont_handle</a> *<a class="code" href="font_8h.html#a82e0e078fc8a8b6a18538131625dba3a">pmfont_handle</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structsfont__handle.html">   70</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsfont__handle.html">sfont_handle</a> {</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630">   71</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630">first_tile</a>;     </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89">   72</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89">font</a>;         </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;};</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="font_8h.html#a47b4964ef677dce9fdf1e9df29804721">   76</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="font_8h.html#a47b4964ef677dce9fdf1e9df29804721">font_color</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> forecolor, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> backcolor) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __FONT_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aasm_2types_8h_html_a0971918860055db2e50dacea4da8f3bc"><div class="ttname"><a href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></div><div class="ttdeci">#define OLDCALL</div><div class="ttdef"><b>Definition:</b> types.h:21</div></div>
<div class="ttc" id="afont_8h_html_a47b4964ef677dce9fdf1e9df29804721"><div class="ttname"><a href="font_8h.html#a47b4964ef677dce9fdf1e9df29804721">font_color</a></div><div class="ttdeci">void font_color(uint8_t forecolor, uint8_t backcolor) OLDCALL</div></div>
<div class="ttc" id="afont_8h_html_a669b357bedc37be27d7549bd3b8b36f8"><div class="ttname"><a href="font_8h.html#a669b357bedc37be27d7549bd3b8b36f8">font_init</a></div><div class="ttdeci">void font_init(void)</div></div>
<div class="ttc" id="afont_8h_html_a7c6b54e58c41763c66f15ec4528a1d4a"><div class="ttname"><a href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a></div><div class="ttdeci">uint16_t font_t</div><div class="ttdef"><b>Definition:</b> font.h:24</div></div>
<div class="ttc" id="afont_8h_html_a7dee0ba7beb261727340b8cce7c5afcd"><div class="ttname"><a href="font_8h.html#a7dee0ba7beb261727340b8cce7c5afcd">font_set</a></div><div class="ttdeci">font_t font_set(font_t font_handle) OLDCALL</div></div>
<div class="ttc" id="afont_8h_html_a82e0e078fc8a8b6a18538131625dba3a"><div class="ttname"><a href="font_8h.html#a82e0e078fc8a8b6a18538131625dba3a">pmfont_handle</a></div><div class="ttdeci">struct sfont_handle * pmfont_handle</div><div class="ttdef"><b>Definition:</b> font.h:66</div></div>
<div class="ttc" id="afont_8h_html_ad089c09492dbd0423f4dd28f1a49a995"><div class="ttname"><a href="font_8h.html#ad089c09492dbd0423f4dd28f1a49a995">font_load</a></div><div class="ttdeci">font_t font_load(void *font) OLDCALL</div></div>
<div class="ttc" id="agroup__gbdk__fonts_html_ga17e825a65ba38f34a658fe0a2c99d8d4"><div class="ttname"><a href="group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4">font_italic</a></div><div class="ttdeci">uint8_t font_italic[]</div><div class="ttdef"><b>Definition:</b> font.h:32</div></div>
<div class="ttc" id="agroup__gbdk__fonts_html_ga1b59bbd85c12436eeef52d4c32c7345d"><div class="ttname"><a href="group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d">font_spect</a></div><div class="ttdeci">uint8_t font_spect[]</div></div>
<div class="ttc" id="agroup__gbdk__fonts_html_ga6dcb04fed78fc39b95171988b776e6bb"><div class="ttname"><a href="group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb">font_ibm</a></div><div class="ttdeci">uint8_t font_ibm[]</div><div class="ttdef"><b>Definition:</b> font.h:32</div></div>
<div class="ttc" id="agroup__gbdk__fonts_html_gab8c52bed73e745f1ee910f2da60ddb4c"><div class="ttname"><a href="group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c">font_ibm_fixed</a></div><div class="ttdeci">uint8_t font_ibm_fixed[]</div></div>
<div class="ttc" id="agroup__gbdk__fonts_html_gad8497ecbd9d845fc24a56688f157aad8"><div class="ttname"><a href="group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8">font_min</a></div><div class="ttdeci">uint8_t font_min[]</div><div class="ttdef"><b>Definition:</b> font.h:32</div></div>
<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
<div class="ttc" id="astdint_8h_html_adf4d876453337156dde61095e1f20223"><div class="ttname"><a href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a></div><div class="ttdeci">unsigned short int uint16_t</div><div class="ttdef"><b>Definition:</b> stdint.h:52</div></div>
<div class="ttc" id="astructsfont__handle_html"><div class="ttname"><a href="structsfont__handle.html">sfont_handle</a></div><div class="ttdef"><b>Definition:</b> font.h:70</div></div>
<div class="ttc" id="astructsfont__handle_html_aa5a35bc92adbcfff5a531bf65da65630"><div class="ttname"><a href="structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630">sfont_handle::first_tile</a></div><div class="ttdeci">uint8_t first_tile</div><div class="ttdef"><b>Definition:</b> font.h:71</div></div>
<div class="ttc" id="astructsfont__handle_html_afa826a9e7aa0dc456bd342717eea1f89"><div class="ttname"><a href="structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89">sfont_handle::font</a></div><div class="ttdeci">void * font</div><div class="ttdef"><b>Definition:</b> font.h:72</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
